package com.crazymakercircle.dhptester.command;

import com.crazymakercircle.dhptester.distributed.TaskManger;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.Scanner;

@Data
@Service("CaseResultClearCommand")
public class CaseResultClearCommand implements BaseCommand
{
    public static final String KEY = "6";

    @Override
    public void exec(Scanner scanner)
    {
        System.out.println("clear test result:");

        TaskManger.getInstance().clearTestResult();

    }

    @Override
    public String getKey()
    {
        return KEY;
    }

    @Override
    public String getTip()
    {
        return "clear test result";
    }

}
